package com.myway.controller;

import com.myway.dto.common.JsonData;
import com.myway.dto.domain.CityDto;
import com.myway.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/en")
public class CityControllerEn {

    @Autowired
    private CityService cityService;

    @RequestMapping("/city")
    @ResponseBody
    public JsonData orderCityJson(){
        CityDto cityDto = cityService.selectInternalForeignCity();
        return JsonData.success(cityDto);
    }

}
